<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script>
        var str ="我是一个'高富帅'的程序员";
        console.log(str);
        
        alert('酷热难耐，火辣的太阳底下，我挺拔的身姿，成为了最独特的风景。\n我审视四周，这里，是我的舞台，我就是天地间的王者。\n这一刻，我豪气冲天，终于大喊一声："收破烂啦！"');

        //检测获取字符串长度length
        var str2 = 'my name is andy';
        console.log(str2.length);//15

        //拼接字符串
        var sss = str + str2;
        console.log(sss);

        var age = prompt("您今年贵庚：");
        console.log('您今年'+age+'岁');
        
        console.log(typeof age);
        
    </script>
</head>
<body>
    
</body>
</html>